package database.constraint;

import java.util.ArrayList;

public class ReferenceConstraint extends Constraint {
	ArrayList<String> ownerAtt;
	String ownerTable;
	
	ArrayList<String> refAtt;
	String refTable;
	
	public ArrayList<Integer> ownerAttIndex;
	public int ownerTableIndex;
	public ArrayList<Integer> refAttIndex;
	public int refTableIndex;
	
	public ReferenceConstraint() {
	    type = 1;
		ownerAtt = new ArrayList<String>();
		refAtt = new ArrayList<String>();
		ownerAttIndex = new ArrayList<Integer>();
		refAttIndex = new ArrayList<Integer>();
	}
	public ArrayList<String> getOwnerAtt() {
		return ownerAtt;
	}
	public String getOwnerTable() {
		return ownerTable;
	}
	public void setOwnerTable(String ownerTable) {
		this.ownerTable = ownerTable;
	}
	public ArrayList<String> getRefAtt() {
		return refAtt;
	}
	public String getRefTable() {
		return refTable;
	}
	public void setRefTable(String refTable) {
		this.refTable = refTable;
	}
	
}
